﻿using System;
using System.Collections.Generic;
using Epitech.Krisk.Xna.ScreenManagerLib.ScreenManager;
using Epitech.Krisk.Xna.ScreenManagerLib.Widget;
using Epitech.Krisk.Xna.UI.Game.InGame.Gameplay;
using Microsoft.Xna.Framework;
using Microsoft.Xna.Framework.Graphics;
using Microsoft.Xna.Framework.Input;

namespace Epitech.Krisk.Xna.UI.Game.InGame
{
    class PanelRenfort : LeftPanel
    {
        public PanelRenfort(Territory territory, Player player) : base(territory, player)
        {
            Temoin = _player.ReinforcementArmy;
        }

        public override void Draw(GameTime gameTime)
        {
            base.Draw(gameTime);

            SpriteBatch.Begin();
            SpriteBatch.DrawString(_font, String.Format("Renfort         {0}", _player.ReinforcementArmy.TotalSoldier() - Renfort.TotalSoldier()), _posRenfort, Color.Black, 0f, Vector2.Zero, 0.5f, SpriteEffects.None, 0f);
            SpriteBatch.End();
        }
    }
}
